package com.edgclub.edg.model;

import java.io.Serializable;

/**
 * @author duanyunfeng
 * 
 */
public class PostsAlbum implements Serializable {
	private static final long serialVersionUID = 1497935316023342951L;
	private Long id;
	private Long postsId;
	private String oriUrl="";
	private String thumbnail;
	private Long createAt;
	private String content ;
	private int width;
	private int height;
	private int size;
	private String userId="";
	private int seq;
	private String url="";
	private String albumId="0";
	private String crc="";
	private String imgUrl="";
	private String  name="";
	private String level="";
	public boolean isOri ; //f=费原图
	private boolean uploadstate ;//false  已上传 t 未上传

	public boolean isUploadstate() {
		if(url.contains("http:"))
			uploadstate=true;
		return uploadstate;
	}

	public void setUploadstate(boolean uploadstate) {
		this.uploadstate = uploadstate;
	}

	public boolean isOri() {
		return isOri;
	}

	public void setOri(boolean ori) {
		isOri = ori;
	}

	public String getAlbumId() {
		return albumId;
	}

	public void setAlbumId(String albumId) {
		this.albumId = albumId;
	}

	public String getCrc() {
		return crc;
	}

	public void setCrc(String crc) {
		this.crc = crc;
	}

	public String getImgUrl() {
		return imgUrl;
	}

	public void setImgUrl(String imgUrl) {
		this.imgUrl = imgUrl;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLevel() {
		return level;
	}

	public void setLevel(String level) {
		this.level = level;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public int getSeq() {
		return seq;
	}

	public void setSeq(int seq) {
		this.seq = seq;
	}

	public String getOriUrl() {
		return oriUrl;
	}

	public void setOriUrl(String oriUrl) {
		this.oriUrl = oriUrl;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getPostsId() {
		return postsId;
	}

	public void setPostsId(Long postsId) {
		this.postsId = postsId;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getThumbnail() {
		return thumbnail;
	}

	public void setThumbnail(String thumbnail) {
		this.thumbnail = thumbnail;
	}

	public Long getCreateAt() {
		return createAt;
	}

	public void setCreateAt(Long createAt) {
		this.createAt = createAt;
	}

	public int getWidth() {
		return width;
	}

	public void setWidth(int width) {
		this.width = width;
	}

	public int getHeight() {
		return height;
	}

	public void setHeight(int height) {
		this.height = height;
	}

	public int getSize() {
		return size;
	}

	public void setSize(int size) {
		this.size = size;
	}

	@Override
	public String toString() {
		return "PostsAlbum [id=" + id + ", postsId=" + postsId + ", url=" + url
				+ ", thumbnail=" + thumbnail + ", createAt=" + createAt + "]";
	}

}
